﻿using System;
using Microsoft.SmallBasic.Library;
using SmallBasicFun;

namespace Houses
{
	public class Houses
	{
	    //   The current height is 40 --#1.2
		static int height = 40;

		public static void Main()
		{
			Tortoise.Show();

			//   Make the tortoise move as fast as possible --#11
            Tortoise.SetSpeed(10);

			//   Have the tortoise start at 200 pixels in on the X axis --#14
            Tortoise.SetX(200);

			//   DrawHouse with height 120 (recipe below) --#10
		    height = 120;
            DrawHouse();
		    //   DrawHouse with height 90 (recipe below) --#12
            height = 90;
            DrawHouse();
            //   DrawHouse with height 20 (recipe below) --#13
            height = 20;
            DrawHouse();

		}

         //   ------------- Recipe for drawHouse --#9
		public static void DrawHouse()
		{

            //   Change the color of the line the tortoise draws to lightGray --#15
            Tortoise.SetPenColor(Colors.LightGray);
            //   Move the tortoise the height of a house --#1.1
            Tortoise.Move(height);
            //   Turn the tortoise 90 degrees to the right --#2
            Tortoise.Turn(90);

            //   Move the tortoise 30 pixels --#3
            Tortoise.Move(30);
            //   Turn the tortoise 90 degrees to the right --#4
            Tortoise.Turn(90);
            //   Move the tortoise the height of a house --#5
            Tortoise.Move(height);
            //   Turn the tortoise 90 degrees to the left --#6
            Tortoise.Turn(-90);
            //   Move the tortoise 20 pixels --#7
            Tortoise.Move(20);
            //   Turn the tortoise 90 degrees to the left --#8
            Tortoise.Turn(-90);
            //   ------------- End of drawHouse recipe

		}
	}
}